package com.standardoperationapp.operationplan;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.widget.Toast;

import com.standardoperationapp.app.BaseApplication;
import com.standardoperationapp.utils.AlarmUtil;

public class MyBroadcastReceiver extends BroadcastReceiver {//广播

    @Override
    public void onReceive(Context context, Intent intent) {
        Toast.makeText(context, "收到按键点击了", Toast.LENGTH_LONG).show();
        AlarmUtil.cancelAlarm(context, BaseApplication.getApp().alarmIntent);
            /*  处理程序
           if(isZylk){
                zylkHandler.removeCallbacks(zylkRunnable);
                zylkHandler.postDelayed(zylkRunnable, 6000);
            }
            if(null != warningDialog && warningDialog.isShowing()){
                warningDialog.dismiss();
            }*/
//            Toast.makeText(context, "收到", Toast.LENGTH_LONG).show();
    }
}